package org.dinqy.impl;

import java.util.List;

import org.dinqy.syntax.ResultList;

/**
 * @author armandino (at) gmail.com
 */
public class ResultListNode<T> extends ClauseNode<T> implements ResultList<T> {
    
    ResultListNode(ClauseNode<T> parent) {
        super(parent);
    }
    
    public final T result() {
        return getQueryExecutor().result(getEntityClass(), getClauseBeans());
    }

    public final List<T> list() {
        return getQueryExecutor().list(getEntityClass(), getClauseBeans());
    }
    
}
